# Author    :Dun_Hz
# Time      :2024/3/13 21:42
# 阶乘
fib_list = {}       # 字典
def Func(n):
    if n<2:
        return n
    if n not in fib_list:       #储存，减少后续运算次数
        fib_list[n] = n * Func(n-1)
    return fib_list[n]
n = 100
print(f"{n}的阶乘结果是：",Func(n))